<?php

namespace app\admin\model\sales;

use think\Model;

/**
 * Custcontacts
 */
class Custcontacts extends Model
{
    // 表主键
    protected $pk = 'contid';
    
    // 表名
    protected $name = 'sales_custcontacts';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function debtornoTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\sales\Debtorsmaster::class, 'debtorno', 'debtorno');
    }
}